# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-python-bidi
_pkgname=python-bidi
pkgver=0.6.6
pkgrel=1
pkgdesc='Pure python implementation of the BiDi layout algorithm.'
url='https://bidict.readthedocs.org/'
arch=('any')
license=('LGPL')
depends=('python')
makedepends=('python-setuptools' 'python-pip' 'python-wheel')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('40df933321c82cf7e807a964240066eb3c2cf8f8babfade24bfaf907290a486ba639230e9474ee00ceef82158b8eb3056928eaa153185079c2a68edeacfd128c')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

